package bl.service;

import java.util.ArrayList;

import vo.BLToViewResultMessage;
import exception.BookInventoryNotFoundException;
import exception.ItemNotEnoughException;
import exception.ItemNotFoundException;
import exception.MemberNotFoundException;

import vo.SaleItemVO;

public interface TrolleyManagementBLService {

	public ArrayList<SaleItemVO> getTrolley(int memberID)
			throws MemberNotFoundException;

	public BLToViewResultMessage addItem(int memberID, SaleItemVO saleItem)
			throws MemberNotFoundException, ItemNotEnoughException,
			ItemNotFoundException, BookInventoryNotFoundException;

	public BLToViewResultMessage deleteItem(int memberID, int bookID)
			throws MemberNotFoundException, ItemNotFoundException;

	public BLToViewResultMessage modifyQuantity(int memberID, int bookID,
			SaleItemVO saleItem) throws MemberNotFoundException,
			ItemNotFoundException, BookInventoryNotFoundException,
			ItemNotEnoughException;
	
	public double getTotalPrice(int memberID) throws MemberNotFoundException;

}
